package cn.abellflower.dzfp;

/**
 * @Description
 * @Author gbzdyf@126.com
 * @Date 2020/10/19 8:48 下午
 */
public class BaseService implements ConsumerCallBack {

    public MessageConsumerImpl createConsumer() {
        ConsumerConfig build = ConsumerConfig.builder().consumerCallBack(this).build();
        return new MessageConsumerImpl(build);
    }

    @Override
    public void onMessage(String msg) {
        System.out.println( msg + "BaseService");
    }
}
